var tablexEvents = {
		onRenderItem:function(colName,text){
			switch(colName){
			case 'channel':
				return channelFun(text);
			}
		}
}
function onQuerySucc(){
	$("#logsTable .datatable-rows table").addClass("table-bordered");
}

function btnSubmit(){
	var startDate = $("#startDate").val();
	var endDate = $("#endDate").val();
	if(endDate != null && endDate != "" && startDate != null && startDate != ""){
		var sTime = new Date(startDate.replace(/-/g,"\/"));
		var eTime = new Date(endDate.replace(/-/g,"\/"));
		if(eTime <= sTime){
			MsgBox.warn("开始时间不能大于等于结束时间","提示",null);
		}else{
			logsPagination.resetPagination();
			$("#queryLogFrm").submit();
		}
	}else{
		logsPagination.resetPagination();
		$("#queryLogFrm").submit();
	}
}

function channelFun(text){
	var txt = text;
	switch(text){
	case 'web':
		txt = "网页";
		break;
	case 'WEB':
		txt = "网页";
		break;
	case 'cust_app':
		txt = "客户APP";
		break;
	case 'cust_wx':
		txt = "客户微信";
		break;
	case 'sell_app':
		txt = "销售APP";
		break;
	case 'sell_wx':
		txt = "销售微信";
		break;
	}
	return txt;
}